function columns(vm) {
    const cols = [
        {
            title: '序号',
            dataIndex: '',
            key: 'rowIndex',
            width: 60,
            align: 'center',
            customRender: function (t, r, index) {
                return parseInt(index) + 1
            }
        },
        {
            title: '机构名称',
            align: 'center',
            dataIndex: 'name',
            key: 'name'
        },
        {
            title:'法人',
            align:'center',
            dataIndex:'legalPerson',
            key:'legalPerson'
        },
        {
            title:'联系人',
            align:'center',
            dataIndex:'contact',
            key:'contact'
        },
        {
            title: '联系电话',
            align: 'center',
            dataIndex: 'phone',
            key: 'phone'
        },
        {
            title:'成立时间',
            align:'center',
            dataIndex:'estabDate',
            key:'estabDate'
        },
        {
            title:'从业人数',
            align:'center',
            dataIndex:'numberOfEmploy',
            key:'numberOfEmploy'
        },
        {
            dataIndex: 'action',
            align: 'center',
            slots: { title: 'actionName' },
            scopedSlots: { customRender: 'action' }
        }
    ]
    return cols
}

export default columns